.class Lcom/teewoo/app/bus/ui/SearchActivity$3;
.super Ljava/lang/Object;
.source "SearchActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/SearchActivity;->getSearchHistory(I)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/SearchActivity;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/SearchActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/SearchActivity$3;->this$0:Lcom/teewoo/app/bus/ui/SearchActivity;

    .line 266
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 270
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    check-cast p1, Landroid/widget/ListView;

    .end local p1           #parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    invoke-virtual {p1, p3}, Landroid/widget/ListView;->getItemAtPosition(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/teewoo/app/bus/model/history/LineHistory;

    .line 271
    .local v1, l:Lcom/teewoo/app/bus/model/history/LineHistory;
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/SearchActivity$3;->this$0:Lcom/teewoo/app/bus/ui/SearchActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/SearchActivity;->access$1(Lcom/teewoo/app/bus/ui/SearchActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/teewoo/app/bus/ui/SearchByLineResultActivity;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 272
    .local v0, intentTo:Landroid/content/Intent;
    const-string v2, "com.teewoo.app.bus.search.line"

    invoke-virtual {v1}, Lcom/teewoo/app/bus/model/history/LineHistory;->getKeyWord()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 273
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/SearchActivity$3;->this$0:Lcom/teewoo/app/bus/ui/SearchActivity;

    invoke-virtual {v2, v0}, Lcom/teewoo/app/bus/ui/SearchActivity;->startActivity(Landroid/content/Intent;)V

    .line 274
    return-void
.end method
